package com.medusa.aps.business.modules.modeling.mp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medusa.aps.business.model.pagination.Page;
import com.medusa.aps.business.modules.basic.model.output.MaterialChooseVO;
import com.medusa.aps.business.modules.modeling.model.input.ChooseMaterialRouteParam;
import com.medusa.aps.business.modules.modeling.model.output.ProcessRouteSimpleVO;
import com.medusa.aps.business.modules.modeling.mp.entity.ProcessRoute;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 工艺路线数据库访问层
 *
 * @author yuxh
 * @since 2023-08-14 17:37:48
 */
public interface ProcessRouteMapper extends BaseMapper<ProcessRoute> {

    Page<MaterialChooseVO> chooseMaterial(@Param("chooseMaterialRouteParam") ChooseMaterialRouteParam chooseMaterialRouteParam, @Param("page") Page<MaterialChooseVO> page);

    List<ProcessRouteSimpleVO> processRouteSimple(@Param("processRouteIds") Set<Integer> processRouteIds);
}

